package com.escope.casemanager.listener;

import lombok.extern.slf4j.Slf4j;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

/**
 * web初始化监听  用于初始化全局资源
 * 2024/3/15
 */
@Slf4j
public class WebInitListener implements ServletContextListener {
    /**
     * 系统初始化 .
     *
     * @param sce .
     */
    @Override
    public void contextInitialized(ServletContextEvent sce) {
        log.info("----执行web启动监听----");
    }

    /**
     * web服务销毁 .
     *
     * @param sce .
     */
    @Override
    public void contextDestroyed(ServletContextEvent sce) {
        System.out.println("监听web服务销毁。。。");
    }
}
